package com.rightsidetech.mall.dto.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@JsonIgnoreProperties(value={"count"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SpecsPageResp implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("规格")
    private String specs;

    @ApiModelProperty("父级id 规格名为0")
    private Long parentId;

    @ApiModelProperty("创建人")
    private String createrName;

    @ApiModelProperty("创建时间")
    private String createdAt;

    private Integer count;

    private Boolean _loading = false;

    @ApiModelProperty("规格对应的规格值")
    private List<SpecsPageResp> children = new ArrayList();
}
